﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XQ.SP.Model
{
    /// <summary>
    /// 功能表
    /// </summary>
    //[TableName("[Sys_Permission]")]
    public partial class Sys_Permission
    {
        #region Primitive Properties
        /// <summary>
        /// 功能ID
        /// </summary>
        //[PrimaryKey]
        public virtual string PermissionId
        {
            get;
            set;
        }

        /// <summary>
        /// 功能名称
        /// </summary>
        public virtual string PermissionName
        {
            get;
            set;
        }

        /// <summary>
        /// 2级菜单
        /// </summary>
        public virtual string MenuId
        {
            get;
            set;
        }

        /// <summary>
        /// 控制器名称
        /// </summary>
        public virtual string Controller
        {
            get;
            set;
        }

        /// <summary>
        /// 方法名称
        /// </summary>
        public virtual string Action
        {
            get;
            set;
        }

        /// <summary>
        /// 是否按钮
        /// </summary>
        public virtual Nullable<bool> IsButton
        {
            get;
            set;
        }


        /// <summary>
        /// 图标
        /// </summary>
        public virtual string Icon
        {
            get;
            set;
        }

        /// <summary>
        /// 功能类型（0按钮,1页面,2普通,3数据）
        /// </summary>
        public virtual int Type
        {
            get;
            set;
        }

        /// <summary>
        /// 说明
        /// </summary>
        public virtual string Description
        {
            get;
            set;
        }

        /// <summary>
        /// 排序
        /// </summary>
        public virtual int Sort
        {
            get;
            set;
        }

        /// <summary>
        /// 是否删除 0删除 1正常
        /// </summary>
        public virtual int IsDelete
        {
            get;
            set;
        }

        /// <summary>
        /// 总行数
        /// </summary>
        //[SqlIgnore]
        public virtual int Total
        {
            get;
            set;
        }
        #endregion
    }
}
